home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / Apple Shared Library Manager / ASLM Examples / TestTools / Sources / CircLib3.c < prev    next >
Encoding:
C/C++ Source or Header  |  1996-11-19  |  336 b   |  22 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        CircLib3.c
  3.  
  4.     Contains:    Test for cyclical dependencies working
  5.  
  6.     Copyright:    © 1992-1993 by Apple Computer, Inc., all rights reserved.
  7.  
  8. */
  9.  
  10. extern int CircLib2(void);
  11. extern int CircLib1(void);
  12.  
  13. int CircLib3()
  14. {
  15.     int a = CircLib1();
  16.     int b;
  17.     if (a != 515)            // a always is 515!
  18.         b = CircLib2();
  19.     else
  20.         b = 2;
  21.     return a + b;
  22. }